#pragma once
#include "controler.h"

class Camera;

class CHD_SDK_API CameraMoveCtrl :public Controler
{
public:
	CameraMoveCtrl(void);
	~CameraMoveCtrl(void);
	bool mouse(int button, int state, int x, int y);
	bool keyboard(unsigned char key, int x, int y);
	bool motion(int x,int y);
	void setCamera(Camera* camera);
private:
	bool bMove;
	bool bRotate;
	int lastX ,lastY;
	int lastRX ,lastRY;
	Camera* camera;
};
